package com.yc.yjh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 赛程表
 * </p>
 *
 * @author 廖老师
 * @since 2023-08-04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Matches implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 比赛ID
     */
    @TableId(value = "match_id", type = IdType.AUTO)
    private Long matchId;

    /**
     * 赛事ID
     */
    private Long tournamentId;

    /**
     * 阶段
     */
    private String stage;

    /**
     * 比赛时间
     */
    private String time;

    /**
     * 比赛日期
     */
    private LocalDate date;

    /**
     * 场馆ID
     */
    private Long venueId;

    /**
     * 主队名称
     */
    private String homeTeamName;

    /**
     * 客队名称
     */
    private String awayTeamName;

    /**
     * 主队得分
     */
    private Integer homeScore;

    /**
     * 客队得分
     */
    private Integer awayScore;

    private Integer areword;

    private Integer hreword;
    @TableField(exist = false)
    private Teams ateams;
    @TableField(exist = false)
    private String ateamsIcon;
    @TableField(exist = false)
    private Teams hteams;
    @TableField(exist = false)
    private String hteamsIcon;

    public Long getMatchId() {
        return matchId;
    }

    public void setMatchId(Long matchId) {
        this.matchId = matchId;
    }

    public Long getTournamentId() {
        return tournamentId;
    }

    public void setTournamentId(Long tournamentId) {
        this.tournamentId = tournamentId;
    }

    public String getStage() {
        return stage;
    }

    public void setStage(String stage) {
        this.stage = stage;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public Long getVenueId() {
        return venueId;
    }

    public void setVenueId(Long venueId) {
        this.venueId = venueId;
    }

    public String getHomeTeamName() {
        return homeTeamName;
    }

    public void setHomeTeamName(String homeTeamName) {
        this.homeTeamName = homeTeamName;
    }

    public String getAwayTeamName() {
        return awayTeamName;
    }

    public void setAwayTeamName(String awayTeamName) {
        this.awayTeamName = awayTeamName;
    }

    public Integer getHomeScore() {
        return homeScore;
    }

    public void setHomeScore(Integer homeScore) {
        this.homeScore = homeScore;
    }

    public Integer getAwayScore() {
        return awayScore;
    }

    public void setAwayScore(Integer awayScore) {
        this.awayScore = awayScore;
    }

    public Integer getAreword() {
        return areword;
    }

    public void setAreword(Integer areword) {
        this.areword = areword;
    }

    public Integer getHreword() {
        return hreword;
    }

    public void setHreword(Integer hreword) {
        this.hreword = hreword;
    }

    @Override
    public String toString() {
        return "Matches{" +
        "matchId=" + matchId +
        ", tournamentId=" + tournamentId +
        ", stage=" + stage +
        ", time=" + time +
        ", date=" + date +
        ", venueId=" + venueId +
        ", homeTeamName=" + homeTeamName +
        ", awayTeamName=" + awayTeamName +
        ", homeScore=" + homeScore +
        ", awayScore=" + awayScore +
        ", areword=" + areword +
        ", hreword=" + hreword +
        "}";
    }
}
